<html>
    <head>
        <meta name="layout" content="main-widger" />
        <title>WebAlbum : Person List</title>
    </head>
    <body>
        <div class="body">
            <h1>Person List</h1>
            <g:render template="/shared/creators" />
            <g:render template="/shared/messages" />

            <div class="list">

                        <g:each in="${list}" status="i" var="person">
		            <hr>
                       	        Person: <g:link action="show" id="${person.id}" title="Show Person">${person.name?.encodeAsHTML()}</g:link><br>
                                Motto: ${person.motto?.encodeAsHTML()}<br>
                                Albums: ${person.albumsCount?.encodeAsHTML()}<br>
                                Pictures: ${person.picturesCount?.encodeAsHTML()}<br>
                                Joined: <g:formatDate format="dd MMM yyyy HH:mm:ss" date="${person.dateCreated}"/><br>
                        </g:each>

            <wa:ifPaginate count="${paginateCount}">
                <div class="paginateButtons">
                    <g:paginate total="${paginateCount}" /> &#160;
                </div>
            </wa:ifPaginate>
        </div>
    </body>
</html>
